package com.dstation.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dstation.domain.*;
import org.apache.ibatis.annotations.Param;

import java.sql.Timestamp;
import java.util.List;

public interface RecommendInfoMapper extends BaseMapper<RecommendInfo> {



    int insertBrowserData(@Param("rating") long rating);

    int insertCollectData(@Param("rating") long rating);

    int insertLikedData(@Param("rating") long rating);

    int insertCoinData(@Param("rating") long rating);

    int deleteAllRecommendData();

    List<RecommendInfo> selectAllRecommend();

    List<VideoInfo> selectAllVideo();

    IPage<VideoInfo> selectRecommendVideo(@Param("idSet") List<Integer> idSet, @Param("ipage")Page page);


    List<HistoryInfo> selectHotBroswerData(@Param("deadLine") Timestamp deadLine);

    List<VideoLikedInfo> selectHotLikedData(@Param("deadLine")Timestamp deadLine);

    List<CollectionInfo> selectHotCollectData(@Param("deadLine")Timestamp deadLine);

    List<CoinOperatedInfo> selectHotCoinData(@Param("deadLine")Timestamp deadLine);



}
